const path = require('path');
// console.log(path.join('/a', '/b', 'c'));
// console.log(path.resolve('/a', '/b', '/c'));

console.log(path.extname('/a/f/d/c/hg/.aaa/fefe/b/s/s/w/e/t/y/a.jpg'));